# $Id: PKGBUILD 143919 2011-11-30 20:53:04Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=obexftp
pkgver=0.23
pkgrel=5
pkgdesc="A tool for transfer files to/from any OBEX enabled device"
arch=('i686' 'x86_64')
url="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
license=('GPL')
depends=('openobex' 'python2')
makedepends=('pkg-config')
options=('!libtool')
source=("http://downloads.sourceforge.net/openobex/${pkgname}-${pkgver}.tar.bz2")
md5sums=('f20762061b68bc921e80be4aebc349eb')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --disable-ruby \
              --enable-python
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  # remove nasty files
  # mv ${pkgdir}/usr/lib/perl5/site_perl/5.10.0 ${pkgdir}/usr/lib/perl5/site_perl/current
  rm -f ${pkgdir}/usr/lib/perl5/core_perl/perllocal.pod
}
